/*
 * Volcado.h
 *
 *  Created on: 28/08/2012
*/

#ifndef VOLCADO_H_
#define VOLCADO_H_

/*
 * Pre: Se respeta la siguiente convencion de argumentos:
 *
 * Usage:

 tp0 -h\n	tp0 -V\n	tp0 [options]

 Options:
	-h, --help	Print this information.
	-V, --version	Print version and quit.
	-O, --octal	Octal dump mode: encode the input (binary file) in octal
								format (default).
	-b, --binary	Binary mode: decode the input (octal dump file) in binary
								format.
	-i, --input	Path to input file (defaults to stdin).
	-o, --output	Path to output file (defaults to stdout).
	-l, --length	Number of octal bytes per line (line length) at the
					output in octal dump mode (0 = default = no limit).
	-d, --delimiter	Delimiter between octal bytes. Could be a string, not only
					a single byte. Used as delimiter for octal output and input\n");
					files (default: none).
	Examples:
		tp0\n	tp0 -i -
		tp0 -i - -o - -O
		tp0 -b
		tp0 -i /dev/random -o /tmp/random-octaldump -l 12

 * Post: Se realiza el volcado de acuerdo a los argumentos.
 */
int volcado(int argc , char *argv[]);

#endif /* VOLCADO_H_ */
